package com.example.myapplication.entity;


import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class BorrowAndLoan {

    @Id(autoincrement = true)
    private Long id;
    private double money;
    private String start;
    private String end;
    private String type;//分为"borrow"和"loan",borrow是借款,loan是贷款
    private String loanRemarks;
    private double rate;//利率
    @Generated(hash = 389890949)
    public BorrowAndLoan(Long id, double money, String start, String end,
            String type, String loanRemarks, double rate) {
        this.id = id;
        this.money = money;
        this.start = start;
        this.end = end;
        this.type = type;
        this.loanRemarks = loanRemarks;
        this.rate = rate;
    }
    @Generated(hash = 374865494)
    public BorrowAndLoan() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public double getMoney() {
        return this.money;
    }
    public void setMoney(double money) {
        this.money = money;
    }
    public String getStart() {
        return this.start;
    }
    public void setStart(String start) {
        this.start = start;
    }
    public String getEnd() {
        return this.end;
    }
    public void setEnd(String end) {
        this.end = end;
    }
    public String getType() {
        return this.type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getLoanRemarks() {
        return this.loanRemarks;
    }
    public void setLoanRemarks(String loanRemarks) {
        this.loanRemarks = loanRemarks;
    }
    public double getRate() {
        return this.rate;
    }
    public void setRate(double rate) {
        this.rate = rate;
    }

}
